import hashlib
import uuid


def random_str(length: int = 10) -> str:
    """
    唯一随机字符串
    """
    only = hashlib.md5(str(uuid.uuid1()).encode('utf-8')).hexdigest()
    return only